package com.sasis.webapp.dwr;

import java.util.List;

import com.sasis.model.MsgRelease;
import com.sasis.service.MsgReleaseManager;

public class MessageRemote {
	private MsgReleaseManager msgReleaseManager; 
	
	public void setMsgReleaseManager(MsgReleaseManager msgManager) {
		this.msgReleaseManager = msgManager;
	}
	
	public List listMessages(String userName) {
		MsgRelease msgRelease = new MsgRelease();
		msgRelease.setOperator(new Integer(userName));
		return msgReleaseManager.getPopMsgReleases(msgRelease);
		
	} 
}
